<@master template="master/master-loan"  title="归档管理">
<div class="detaiTab detaiTab1">
    <form id="subForm" action="/archive/v1/queryList" class="clearfix" data-action-html="#action_load_body" method="get"
          id="loanUserForm">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="bg" align="right" width="15%">贷款单号:</td>
                <td>
                    <input id="billCode" type="text" class="tabInp" name="billCode" value="${archiveLoan.billCode}"/>
                </td>
                <td class="bg" align="right" width="15%">借款人姓名:</td>
                <td>
                    <input id="userFullName" class="tabInp" type="text" name="userFullName"
                           value="${archiveLoan.userFullName}"/>
                </td>
                <td class="bg" align="right" width="15%">存柜档案编号:</td>
                <td>
                    <input id="archiveNo" class="tabInp" type="text" name="archiveNo" value="${archiveLoan.archiveNo}"/>
                </td>
            </tr>
            <tr>
                <td class="bg" align="right" width="15%">归档状态:</td>
                <td colspan="7">
                    <@select id="placeOnFile" type="select" dataSouceType="PLACEONFILE" class="tabInp" name="placeOnFile" value="${archiveLoan.placeOnFile}"/>
                </td>
            </tr>
            <tr>
                <td class="bg"></td>
                <td colspan="5">
                    <@permission permissionName="gdglQuery">
                        <input type="submit" value="搜索" class="btn_auto_30 btn_blue"/>
                    </@permission>
                    <@permission permissionName="gdglDataExport">
                        <a id="exportBtn" href="${reporto2ourl}" target="_blank" class="btn_auto_30 btn_blue">导出</a>
                    </@permission>
                </td>
            </tr>
        </table>
        <input name="pageIndex" type="hidden" value="0"/>
    </form>
</div>
<@permission permissionName="gdglQuery">
    <div class="mt20"><@pagination paginationInfo="paginationInfo"/></div>
</@permission>
</@master>
<@js>
$("#exportBtn").click(function(){
var url ="/archive/export/rest/download?1=1";
if($('#billCode').val())
url+= "&billCode="+$('#billCode').val();
if($('#archiveNo').val())
url+= "&archiveNo="+$('#archiveNo').val();
if($('#userFullName').val())
url+= "&userFullName="+$('#userFullName').val();
if($('#placeOnFile').val())
url+= "&placeOnFile="+$('#placeOnFile').val();
$(this).attr('href',url);
});
</@js>
<@jsRender/>